All Questions
27 questions
0votes
1answer
54views
How to get a list of all posts and their categories?
Basically I just need to have a table like this: Post title Categories Post 1 Category 1, Category 2 Post 2 Category 2, Category 2.1 ... ... From MySQL Query to Retrieve Category from wp_posts I ...
1vote
1answer
42views
Wordpress Rest API Post request from AMP
I am trying to figure out how to send a post request to a WP Rest API function on an AMP Page. The endpoint requires 2 fields, post_id & nonce. /wp-json/wordpress-popular-posts/v2/views/[post_id] ...
0votes
2answers
524views
Server 500 error when updating post using block editor
My client's website has a single post that when updated/saved using the block editor displays the following in the browser console: XHR Post Status 500 https://www.wanderwoman.ca/wp-json/wp/v2/posts/...
0votes
1answer
913views
'403 Forbidden' when publishing a post containing different blocks
I'm experiencing a werid issue I never ran into before. I'm on WordPress 6.3.1 and each time I try to publish a post on my blog I get the "Updating failed. The response is not a valid JSON ...
0votes
0answers
36views
display posts, pages and custom post types from another wordpress site
I have 2 sites one acting as a parent and the second acting as a branch of the organization. The sites are on different domains and databases. I want to display on the branch site some posts and ...
1vote
0answers
32views
How can I get the media inside a post?
I’m new to WordPress, so please forgive me if my question is not clear or vague. I did a lot of research, but I didn’t figure out how to do the trick. I’m developing a Xamarin application for Android ...
1vote
1answer
638views
exclude particular category in api
How do I exclude a particular category in the API? For all categories - I may use the following: https://www.example.com/?rest_route=/wp/v2/posts&per_page=100 What if I need across all the ...
0votes
1answer
3kviews
Creating a WordPress Post via REST API - HTML or Markdown?
When creating a post using the WordPress REST API, should the post body content include HTML or should the post body content be written in Markdown language? Or can it be either? I'm looking to ...
0votes
0answers
578views
Is update_post_meta used when save_post action hook is invoked?
Here, I have some code which applies some indexing operations on an external service (Algolia). My purpose, is to index posts in a similar way, as described in their API documentation. For that cause, ...
0votes
0answers
18views
Get origin or context of a how a post got created and/or updated
Is there an easy way to get the context of how a post (as well as custom post types) got created and/or updated? There are two paths I can think of: Via the admin dashboard Via the REST API Is there a ...
3votes
1answer
3kviews
Query Post Preview Updates from the WP API?
Is there a way to query previews made to updates of already published Posts via the WP API? For example, I am making updates to a post that has already been published, I click the preview button, and ...
0votes
1answer
707views
how to fetch posts from Api in chunks or parts?
I'm working on a Hubspot Api and trying to fetch all blog posts through api, but the api limit is only 20 post each time and i need to get 1960 blog posts. So how i supposed to do that? Is there any ...
0votes
1answer
3kviews
REST API Working for GET but not for POST?
I am trying to create a post through the REST API. I am able to access the API by getting the existing posts, as per the screenshot below: However, when I try to do a similar request to create a new ...
8votes
1answer
13kviews
Fetch All Posts (Including Those Using a Custom Post Type) With Wordpress API
With the Wordpress API, we can use the following request to get all posts of the default 'post' type: http://example.com/wp-json/wp/v2/posts Supposing the 'books' and 'movies' custom post types have ...
2votes
1answer
239views
Every possible way to get data (posts) from Wordpress
We are stumbeling upon an issue of content being found on our website to early. For example, we have a post named 'Client X' we have associated the category 'unpublished' to it. We don't want this ...